import requests
# 创建api目录
class IhrmLoginApi(object):
    @classmethod
    def login(cls,req_json):
        resp = requests.post(url="http://ihrm-test.itheima.net/api/sys/login",json=req_json)

        return resp

if __name__ == '__main__':
    json_data = {"mobile":"13800000002","password":"123456"}
    resp = IhrmLoginApi.login(json_data)
    print(resp.json())